package cc.comac.mom.datahandlers.base;

import java.util.List;

import cc.comac.mom.bean.base.BaseBean;
import cc.comac.mom.util.ResultBean;

public interface DataHandler<T extends BaseBean<?>>{

	public  ResultBean save(T obj);
	public  ResultBean save(List<T> objs);
	
	public  ResultBean update(T obj);
	public  ResultBean update(List<T> objs);
	
	public  ResultBean delete(T obj);
	public  ResultBean delete(List<T> objs);
	
	public  T getById(long id);


}